package com.yc.oop4;

public class Monster {
	private String name;
	private int blood;
	private int att;
	private int def;
	private int gold;
	private int exp;
	
	//一样的
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getBlood() {
		return blood;
	}
	public void setBlood(int blood) {
		this.blood = blood;
	}
	public int getAtt() {
		return att;
	}
	public void setAtt(int att) {
		this.att = att;
	}
	public int getDef() {
		return def;
	}
	public void setDef(int def) {
		this.def = def;
	}
	public int getGold() {
		return gold;
	}
	public void setGold(int gold) {
		this.gold = gold;
	}
	public int getExp() {
		return exp;
	}
	public void setExp(int exp) {
		this.exp = exp;
	}
	public Monster(String name, int blood, int att, int def, int gold, int exp) {
		super();
		this.name = name;
		this.blood = blood;
		this.att = att;
		this.def = def;
		this.gold = gold;
		this.exp = exp;
	}
	public Monster() {
		super();
	}
	
	//这个方法,是我们用于输出对象的时候,输出的内容
		@Override
		public String toString() {
			return name + ", 血量:" + blood + ", 攻击:" + att + ", 防御:" + def + ", 金币:" + gold + ", 经验:" + exp;
		}
	
}
